//this file contains the main parent of all objects the eventHandlerObject
function eventHandlerObject()
{
	this.ename = "baba";
	//required event handlers
	this.onclick = new Array();
	this.onmousemove = new Array();
	this.onmouseover = new Array();
	this.onmousedown = new Array();
	this.onmouseup = new Array();
	this.onkeydown = new Array();
	this.onkeyup = new Array();
	this.onkeypress = new Array();
	
	/*
		this function pushes an anonymous function created by new Function statement to one of arrays above
	*/
	
	
	/*
		this function is used to remove all listeners to a specific event type
		caution this will erase all event listeners
	*/
	this.removeListeners = function(eventName)
	{
		if(this[eventName] != undefined)
		{
			this[eventName] = new Array();
		}
	}
}

eventHandlerObject.prototype.addEventListener = function(eventName,func)
	{
		
		this[eventName].push(func);
		
	}
